

export class ArticleVo{
    private _summary: string;
    /**
     * 作者，可能有多个作者，作者之间使用英文逗号分割
     */
    private _author: string;
    /**
     * 分类代码
     */
    private _categoryId: number;
    /**
     * 文章主体内容，是长字符串哦；这个字段是非必须的，因为有时候我们只需要文章的部分数据用作展示即可。
     */
    private _content?: string;
    /**
     * 文章创建时间
     */
    private _createTime: Date;
    /**
     * 单个表的主键
     */
    private _id: number;
    /**
     * 是否可以进行评论
     */
    private _isCommentable: boolean;
    /**
     * 上一次修改时间
     */
    private _lastModificationTime: Date;
    /**
     * mime type
     */
    private _mimeType: string;
    /**
     * 封面URL，根据这个URL请求文章封面
     */
    private _thumbnail?: string;
    /**
     * 文章标题
     */
    private _title: string;
    /**
     * 文章总的浏览次数
     */
    private _viewCount?: number;

    constructor() {
    }
    // constructor(id: number, summary: string, title: string,
    //             lastModificationTime: Date,
    //             commitable:boolean,
    //             author: string, categoryId: number, createTime: Date,mimeType: string, content?: string,
    //             thumbnail?: string,
    //
    // ) {
    //     this._lastModificationTime = lastModificationTime;
    //     this._isCommentable = commitable;
    //     this._mimeType = mimeType;
    //     this._title = title;
    //     this._thumbnail = thumbnail;
    //     this._summary = summary;
    //     this._author = author;
    //     this._categoryId = categoryId;
    //     this._createTime = createTime;
    //     this._content = content;
    //     this._id = id;
    // }


    get summary(): string {
        return this._summary;
    }

    set summary(value: string) {
        this._summary = value;
    }

    get author(): string {
        return this._author;
    }

    set author(value: string) {
        this._author = value;
    }

    get categoryId(): number {
        return this._categoryId;
    }

    set categoryId(value: number) {
        this._categoryId = value;
    }

    get content(): string | undefined {
        return this._content;
    }

    set content(value: string) {
        this._content = value;
    }

    get createTime(): Date {
        return this._createTime;
    }

    set createTime(value: Date) {
        this._createTime = value;
    }

    get id(): number {
        return this._id;
    }

    set id(value: number) {
        this._id = value;
    }

    get isCommentable(): boolean {
        return this._isCommentable;
    }

    set isCommentable(value: boolean) {
        this._isCommentable = value;
    }

    get lastModificationTime(): Date {
        return this._lastModificationTime;
    }

    set lastModificationTime(value: Date) {
        this._lastModificationTime = value;
    }

    get mimeType(): string {
        return this._mimeType;
    }

    set mimeType(value: string) {
        this._mimeType = value;
    }

    get thumbnail(): string | undefined {
        return this._thumbnail;
    }

    set thumbnail(value: string) {
        this._thumbnail = value;
    }

    get title(): string {
        return this._title;
    }

    set title(value: string) {
        this._title = value;
    }

    get viewCount(): number | undefined {
        return this._viewCount;
    }

    set viewCount(value: number) {
        this._viewCount = value;
    }

    [property: string]: any;
}